
#import <UIKit/UIKit.h>
@protocol SegmentViewDelegate <NSObject>
- (void)segmentViewSelectIndex:(NSInteger)index;
@end

@interface SegmentView : UIView


/**
 *  设置整体风格颜色
 */
@property(nonatomic ,strong) UIColor *tintColor;

/*
 设置选中状态下的文本颜色
 */
@property(nonatomic ,strong) UIColor *selTitleColor;

@property(nonatomic) id<SegmentViewDelegate> delegate;

/*
 小红点是否可见
 */
-(void)setRedPointInvisible:(BOOL)invisible index:(NSInteger)index;

/**
 *  默认构造函数
 *
 *  @param frame frame
 *  @param items title字符串数组
 *
 *  @return 当前实例
 */
- (id)initWithFrame:(CGRect)frame items:(NSArray *)items;

/*
 当前选中项
 */

@property (nonatomic)NSInteger selectedIndex;

@end
